function [XLim, YLim] = getScale(main)

aa = main.template.aa;
ap = main.template.ap;

wpMENOS = main.template.wpMENOS;
wpMAS = main.template.wpMAS;
waMENOS = main.template.waMENOS;
waMAS = main.template.waMAS;

wp = main.template.wp;
wa = main.template.wa;

filterType = main.template.filterType;

YLim = [0 2*max(ap,aa)];

switch filterType
    case 1 % Band Pass
        XLim = [waMENOS/10 waMAS*10];
    case 2 % Low Pass
        XLim = [wp/10 wa*10];
    case 3 % High Pass
        XLim = [wa/10 wp*10];
    case 4 % Band Reject
        XLim = [wpMENOS/10 wpMAS*10];
end



end